<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
  <title>流程分组列表</title>
  <meta name="decorator" content="list"/>
</head>
<body title="act_id_group">
<grid:grid id="actIdGroupGridId" sortname="t.id" url="${adminPath}/activiti/deploy/ajaxGroupList" 
		multiselect="false" scrollpage="true" rowNum="30">
	<grid:column label="sys.common.key" hidden="true"   name="id" width="100"/>
    <grid:column label="act.id.group.name"  name="name" />
    <grid:column label="act.id.group.type"  name="type" />
    <grid:column label="sys.common.opt"  name="opt" formatter="button" width="100"/>
    <grid:button groupname="opt" function="rowDialogDetailRefresh" url="${adminPath}/activiti/deploy/userGroupSet?groupId=\"+row.id+\"" 
    	outclass="btn-info"  innerclass="fa-sitemap" title="分配组员" />
	<grid:toolbar function="create" url="${adminPath}/activiti/deploy/usergroup/edit"/>
	<grid:toolbar function="updateGroup" title="修改" icon="fa-file-text-o" btnclass="btn-fa-file-text-o" 
		url="${adminPath}/activiti/deploy/usergroup/edit"/>
	<grid:toolbar function="delete" url="${adminPath}/activiti/deploy/deleteGroup" tipMsg="你确定要删除这些数据及关联数据吗?请谨慎操作"/>
	
	<grid:toolbar function="search"/>
	<grid:toolbar function="reset"/>
</grid:grid>
<script type="text/javascript">
/**
 * @function 修改更新组.<br> 
 * @date 2018/7/19.<br> 
 * @author zcg .<br> 
 */
function updateGroup(title,url,gridId,width,height,callBack){
		var rowData= $("#"+gridId).jqGrid('getGridParam','selrow');		
	    if (!rowData) {
		    top.layer.msg('请至少选择一条数据!', {icon: 0, time: 1000});
			return; 
		}
	    var id = rowData;
	    url = url +'?id='+rowData;
	    openDialog(title,url,gridId,width, height,callBack);
}
</script>
</body>
</html>